import App from './App'
import store from './store'

import { Config } from "@/Config"
import { Common } from "@/utils/Common"
import { Auth } from '@/utils/Auth'
import { ShareUtil } from '@/utils/share/ShareUtil'
import { DictApi } from '@/api/DictApi'

Vue.prototype.$Config = Config
Vue.prototype.$Common = Common
Vue.prototype.$Auth = Auth
Vue.prototype.$store = store;
Vue.prototype.$ShareUtil = ShareUtil;
Vue.prototype.$DictApi = DictApi;

// #ifdef H5
import ImageResize from "quill-image-resize-mp";
import Quill from "quill";

window.Quill = Quill;
window.ImageResize = { default: ImageResize };
// #endif




// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App,store
})

DictApi.getDict().then((response)=>{
	Vue.prototype.$Dict = response;
	app.$mount()
})
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app,store
  }
}
// #endif

